﻿#region Copyright(C) 2018 FI Ltd. All rights reserved.

// ==================================================================================================
// Copyright(C) 2018 FI Ltd. All rights reserved.
//
// SYSTEM NAME	:   FI.Net Application Framework 
// COMPONENT ID :   FI.EntityFramework
// COMPONENT DESC:  
//
// CREATED DATE/BY: 18 Aug 2018 / Tian Mi
//
// REVISION HISTORY:	DATE/BY			SR#/CS/PM#/OTHERS		DESCRIPTION OF CHANGE
// ==================================================================================================

#endregion

using FI.Core.Utilities;

namespace FI.EntityFramework.Interception
{
    /// <summary>
    /// Represents a clause of the command text.
    /// </summary>
    public class CommandClause
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CommandClause"/> class.
        /// </summary>
        /// <param name="column">The column name.</param>
        /// <param name="parameter">The parameter name.</param>
        public CommandClause(string column, string parameter)
        {
            Guard.ArgumentNotNullOrEmpty(column, "column");
            Guard.ArgumentNotNullOrEmpty(parameter, "parameter");

            this.Column = column;
            this.Parameter = parameter;
        }

        /// <summary>
        /// Gets the column name.
        /// </summary>
        /// <value>
        /// The column name.
        /// </value>
        public string Column
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets the parameter name.
        /// </summary>
        /// <value>
        /// The parameter name.
        /// </value>
        public string Parameter
        {
            get;
            private set;
        }
    }
}